asuknath / nagios-status-json Goto Github PK
View Code? Open in Web Editor NEWNagios Status JSON
Nagios Status JSON
$ php-cgi nath_status.php -r tag=login url_nagios=blabla
PHP Notice: Undefined variable: url_nagios in /usr/local/nagios/share/nath_status.php on line 31
PHP Fatal error: Uncaught Error: Call to undefined function json_encode() in /usr/local/nagios/share/nath_status.php:34
Stack trace:
#0 {main}
thrown in /usr/local/nagios/share/nath_status.php on line 34
Status: 500 Internal Server Error
X-Powered-By: PHP/7.2.24
Content-type: text/html; charset=UTF-8
Hi,
I know that it maybe a bit of a cheeky question, but is there a change that you are going to publish the source of the https://serveralarms.com/fcm/api.php? And if I'm just are about to ask cheeky questions, any change that the code of the apps are going to be open-source?
The page: https://serveralarms.com if saying for a couple of years that the page is under maintenance. This does not give me real confidence... That is why I'm asking it...
Kind Regards...
is ottrun nagios client app or serveralarms can't run on 2 device android with the same url or problem with android version?
i run ottrun and serveralarms nagios client successfully on 1st device, android version 6
and when i run ottrun nagios on 2nd device (android version 9) with url the same as url first device. error incoret url, username or password.
please help me.
thank you
Hi @asuknath
still is working server alarm?
We try to configure it in nagios and iOS but we don't recive any notification. We can consult the state of hosts and services but we haven' any notification.
Can you help us?
Hi,
We run more than 1 Nagios instance within our environments, and I cant see anywhere to add in more than 1 instance into the application?
Can you advise how this can be achieved?
Thanks.
Hello,
iPhone 6 and ios 10 running the app.
Push is ok with the alarms, but I'm never able to get data in hosts, services, etc.
Is the app update and running in ios10?
Is something regarding the settings?
Thanks !!!
Richi
Hiho dear ServerAlarms App support,
on the current App i can't find any way to configure more then one Nagios host
(as mentioned on the app description). Have the App up and running with a
first Nagios (4) instance yet.
Is this still possible and if so, how?
This would be very (!) helpful because i have 3 Nagios instances to
"kindergarden" yet (came from Android to current ios now (where Android aNag
does this incl. push notifications for me).
ServerAlarms seems nearly perfect for what i'm looking for. I know that
"push" notifications under ios - due to system restrictions - are "bit more
difficult to implement", but with the "workaround" this is OK.
I just have to look how to configure that push notes come trough to silent
modes on ios, a very nice function on aNag (Android), to provide "24x7"
"awareness" without all other notification noise in the night, by the option
to "push" aNag notifications "trough" the silent modes (with own volume
override...)...ß) But i assume this will be someting not possible yet under
ios...
many thanks for your work and time,
niels.
When I configure ServerAlarms app on iOS, and use the internal URL (http://192.168.1.17/nagios/), everything is working just fine.
When I open up the server from the internet (http://my.hostname.wan:8080/nagios/), I get a message saying
Certificate Error!
The certificate for this server is invalid. Currently ServerAlarms app is not supporting invalid SSL certificated Please use http: instead of https:
I am not using https: though, so my suspicion is that maybe the app doesn't support defining ports in the URL?
I just want to clarify that http://my.hostname.wan:8080/nagios/ is accessible from the internet and I can see my nagios web interface just fine.
I have Centreon 19.10.18
Hi,
I have your script installed on our Nagios server and all push notifications are happily coming through to my Android device - no problem. Doesn't seem to be the same for IOS.
My college has setup the IOS app on two phones, we have checked that the API key matches and that push notifications are switched on on each device - the setup is the same to what I have in my working Android device. On both IOS phones he can view the hosts and services as expected so I also know the nagios logins are correct. Sadly, even with the app open in the foreground, no push notifications arrive.
Are you aware of anything that could cause this?
The android app doesn't support digest auth, only basic. Would it be possible to add support for it?
Opening a ticket here as the support email is broken:
<[email protected]>: host
dc-2b771883c357.serveralarms.com[23.131.224.20] said: 550 Unrouteable
address (in reply to RCPT TO command)
I've been using the mobile app for a few years now, and it's been great! I noticed the push notifications stopped working a while ago and have since just reconfigured Nagios to use email notifications. But I just wanted to see if this project was still being maintained and if the notification API is still working? I've tried using both the ServerAlarmNotifiy.php and the otrnagiosclient.php files, noting that the only real difference is the API endpoint that they point to, and neither seem to work? I am using the iOS app if it makes any difference. Thanks!
Hi Asuk, I've been using the app for some time now and I've started getting an issue where I can't enable push notifications after they disabled themselves. This has been working for some time up until a few days ago.
Whenever I try and turn the push notifications on, the app crashes. I have tried wiping the cache for the app and re-installing but now I can't even configure the app without it crashing. When I add the settings then choose Test & Update it crashes. I am using a Samsung S9+ running Android 8.0.
I've also tried emailing the support address multiple times but have been getting bounce backs. After checking your domain name, I've found there is no MX record configured so you will not receive any email.
I'm the same guy that has been commenting about the time zone issue also. The app is using GMT for some reason but I am in GMT+10 and this is what is configured on my device.
Hoping you can provide some feedback on this as the app is unusable now.
Hello,
I've configured the app and from my smartphone (android and Iphone) I can see all my nagios configured services, hosts... GREAT!!!
Now, I want apply the push notifications but, when I'm trying to modify templates.cfg file as you recommend, to add the push commands on host and service but,I don't have this config file!!!
I'm using a Nagios XI 5.5.9. Has this version any other config file to apply these modifications?
Best Regards,
jorull
Is not compatible with php 7.4
Can you please fix it. ??
error
PHP Notice: Undefined index: tag in /usr/local/nagios/share/nath_status.php on line 28
Hi, Is your Push Notifications API working?
I have followed your readme to the letter and Nagios appears to be executing ServerAlarmsNotify.php correctly. I have tested the script manually and found that it was requesting a URL like this:
https://serveralarms.com/fcm/api.php?tag=send&title=%3A%3ADOWN%3A%3A+<NAME>&groupname=9VA6F-64STA-URTV2-XXXX&mess=HOST+-+<NAME>+is+DOWN
I have visited: https://serveralarms.com/fcm/api.php and the API does seem to be online and the above does not return an error but sadly, I receive no push notification.
Am I missing something?
(Sensitive data omitted)
In my debian Debian Jessie nagios web default folder is /usr/share/nagios3/htdocs
instead of /usr/local/nagios/share/
as stated in README.md.
root@nagios:~# dpkg -l | grep nagios3 ii nagios3 3.5.1.dfsg-2+b1 i386 host/service/network monitoring and management system ii nagios3-cgi 3.5.1.dfsg-2+b1 i386 cgi files for nagios3 ii nagios3-common 3.5.1.dfsg-2 all support files for nagios3 ii nagios3-core 3.5.1.dfsg-2+b1 i386 host/service/network monitoring and management system core files ii nagios3-doc 3.5.1.dfsg-2 all documentation for nagios3
I contacted you via email and you said you needed 2 days. It's been over a month. Are you even going to maintain this project?
If you no longer want to maintain this, and the OTR Nagios Client, can we please get the source to the API server, so end users can implement their own solution?
The system has become too unstable to use for push notification, so I must seek an alternative.
The application is not working, no notifications...
I'd like to improve the app, but the code need to be released to continue with development
Hi, I am using serveralarms on my iphone. But we migrated nagios to icinga2. I tried install nath_status.php and changed $statusFile = '/var/cache/icinga2/status.dat';.
But not working,
Will you support Icinga2? Thank you for information.
David
Nagios® Core™ 4.2.4, IOS 11.4.1
nath_status.php returns no data in browser:
{ "hosts": [ ], "services": [ ] }
and in app, all zeros on dashboard. Used to work fine until recently.
Dear,
I am trying to configure this app. I added the Nath_status.php and it works (show a page with all status.dat info) but when trying to use from the app all time receive a “Failed! Incorrect username or password.”, I check those with a browser and works fine.
Checking my access.log file did not appear any log intent (even with a wrong password), it is like if the app really did not try to access the server. Using a browser in my cell it works fine.
Any idea?
Thanks in advance for your help.
Regards,
Is there an issue with the push notification services? I'm not receiving any notification using the same setup that worked a couple of weeks ago
Hi,
on the dashboard of the app will be useful to add a button to list the hosts and service unhandled.
In my scenario i have many down host or service down that i acknowledge because i know why is down.
So when i use the app i see many host in down state that are not important because i already acknowledge the problem.
It will be great that on the service unhandled there are not the service down of an bost that is down and acknowledge.
Laragio
I´ve installed the nath_status.php and updated it accordingly so that i finds the status.dat file.
I can access and see the https://nagios.server.com/nagios/nath_status.php file in a browser.
But the iOs app says:
"Invalid API". "Nagios API is invalid. Upload nath_status.php to your Nagios web root folder... "
etc etc.
But I´ve done all that and I´ve also configured the app correctly regarding the url (with a / at the end).
Nagios version is 4.1.1.
Is there something I´m not doing correctly here?
Would it be possible to connect somehow and try to make this project work again? The push notifications are down for some reason and I would like to get involved and help you with hosting the PHP API part of this so we can make it work. Thanks!
I updated my phone recently to Android Pie and push notifications were working. This morning they stopped working and I saw that it had disabled push in the app.
Tried to enable it and the app crashed. I cleared the cache and data on the phone to reset the app and have tried to reconfigure it, but it constantly crashes on the config page.
I have also checked on my iPad and it is doing the same thing.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.