Search found 7 matches
- Mon Jun 23, 2025 1:45 pm
- Forum: Nagios XI
- Topic: Possible bug in custom variable display?
- Replies: 1
- Views: 3820
Possible bug in custom variable display?
Hi guys, When I was recently writing some code to update some custom variables i noted they are, in fact, case sensitive. However, when we list custom host variables on the website, they're all upper case. Is this intentional? I know we can get the list of all variables from a host directly from the...
- Fri Sep 27, 2024 12:21 pm
- Forum: Nagios XI
- Topic: Nagios XI Backup Script failed
- Replies: 5
- Views: 2319
Re: Nagios XI Backup Script failed
Thanks Laura. Appreciate the update. Cheers James Hi James ( jseldon ), Thank you for digging into that some more. I was wondering about the purpose of the --version flag. To be honest, I am surprised the logic works at all, with --version , because many times a flag like that will cause all other f...
- Thu Sep 26, 2024 7:48 pm
- Forum: Nagios XI
- Topic: Nagios XI Backup Script failed
- Replies: 5
- Views: 2319
Re: Nagios XI Backup Script failed
I'm using Debian 11. Both of these commands return a result of 0 result code [0] column_option [--column-statistics=0] This aligns with what I see directly out of the bash result variable: $ mysqldump --column-statistics=0 --version mysqldump: unknown variable 'column-statistics=0' mysqldump Ver 10....
- Fri Sep 20, 2024 2:00 pm
- Forum: Nagios XI
- Topic: Nagios XI Backup Script failed
- Replies: 5
- Views: 2319
Nagios XI Backup Script failed
Hi guys, When I logged in this morning I got an email that the Nagios XI backup had failed. I went looking into the logs and found the following: Backing up MySQL databases... mysqldump: unknown variable 'column-statistics=0' Error backing up MySQL database 'nagios' - check the password in this scri...
- Wed Sep 11, 2024 1:43 pm
- Forum: Nagios XI
- Topic: Bulk custom host variables - via API or other means?
- Replies: 6
- Views: 1895
Re: Bulk custom host variables - via API or other means?
Thanks for verifying! I was able to get your code working so this suggests I've got something formatted slightly wrong. I'll keep messing around to figure out why. I appreciate your help. Cheers James Hi @jseldon, I was able to get it to work with the following script: import requests # Define the U...
- Wed Sep 11, 2024 10:58 am
- Forum: Nagios XI
- Topic: Bulk custom host variables - via API or other means?
- Replies: 6
- Views: 1895
Re: Bulk custom host variables - via API or other means?
Thanks. I tried this - same result. Is there a different endpoint for custom vars I'm missing? It seems like this should work. I've verified it's not updating the configuration files. Your PUT Payload would be this. payload = { "_location": location, "_cabinetname": cabinet_name ...
- Tue Sep 10, 2024 6:20 pm
- Forum: Nagios XI
- Topic: Bulk custom host variables - via API or other means?
- Replies: 6
- Views: 1895
Bulk custom host variables - via API or other means?
Hi all, I'm looking to add some custom host variables to track the physical rack location of baremetal servers but I seem to be having no luck getting this to work with the API adding the variables via host PUTs. I can manually add them when editing the host in the CCM and it works fine but given th...